.class public Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;
.super Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;
.source "AddBGMusicActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity$l;
    }
.end annotation


# instance fields
.field private A:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

.field private B:Lcom/esfile/screen/recorder/videos/edit/ui/b$g;

.field private C:I

.field private D:J

.field private E:Z

.field private F:J

.field private G:Z

.field private H:Lcom/esfile/screen/recorder/media/b;

.field private I:Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity$l;

.field private J:Lcom/esfile/screen/recorder/videos/edit/activities/music/a;

.field private m:F

.field private n:Landroid/widget/ImageView;

.field private final o:Landroid/util/LongSparseArray;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroid/util/LongSparseArray<",
            "Les/cd$j;",
            ">;"
        }
    .end annotation
.end field

.field private p:Les/cd;

.field private q:Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;

.field private r:[Ljava/lang/String;

.field private s:Landroid/widget/TextView;

.field private t:Landroid/widget/TextView;

.field private u:Landroid/widget/TextView;

.field private v:Landroid/widget/TextView;

.field private w:Landroid/widget/ImageView;

.field private x:Landroid/view/View;

.field private y:Landroid/widget/TextView;

.field private z:Landroid/widget/TextView;


# direct methods
.method public constructor <init>()V
    .locals 4

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;-><init>()V

    const/high16 v0, 0x3f800000    # 1.0f

    .line 2
    iput v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->m:F

    .line 3
    new-instance v0, Landroid/util/LongSparseArray;

    invoke-direct {v0}, Landroid/util/LongSparseArray;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->o:Landroid/util/LongSparseArray;

    const/4 v0, 0x5

    new-array v0, v0, [Ljava/lang/String;

    const/4 v1, 0x0

    const-string v2, "SubtitleRender"

    aput-object v2, v0, v1

    const-string v1, "BackgroundRender"

    const/4 v2, 0x1

    aput-object v1, v0, v2

    const/4 v1, 0x2

    const-string v3, "CropRender"

    aput-object v3, v0, v1

    const/4 v1, 0x3

    const-string v3, "RotateRender"

    aput-object v3, v0, v1

    const/4 v1, 0x4

    const-string v3, "PictureRender"

    aput-object v3, v0, v1

    .line 4
    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->r:[Ljava/lang/String;

    .line 5
    iput v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->C:I

    const-wide/16 v0, 0x0

    .line 6
    iput-wide v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->D:J

    .line 7
    iput-wide v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->F:J

    .line 8
    iput-boolean v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->G:Z

    return-void
.end method

.method private K()V
    .locals 3

    .line 1
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->G()V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->A:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    const-wide/16 v1, 0x3e8

    invoke-virtual {v0, v1, v2}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->c(J)Z

    move-result v0

    if-nez v0, :cond_0

    .line 3
    sget v0, Les/z4;->durec_subtitle_duration_limit_prompt:I

    invoke-static {v0}, Les/ec;->a(I)V

    return-void

    .line 4
    :cond_0
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const/high16 v1, 0x4000000

    .line 5
    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    const/16 v1, 0x3e8

    .line 6
    invoke-virtual {p0, v0, v1}, Landroidx/fragment/app/FragmentActivity;->startActivityForResult(Landroid/content/Intent;I)V

    return-void
.end method

.method private L()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->p:Les/cd;

    iget-wide v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->D:J

    invoke-static {v0, v1, v2}, Les/rd;->a(Les/cd;J)J

    move-result-wide v0

    iput-wide v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->F:J

    return-void
.end method

.method private M()Ljava/util/List;
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Les/cd$j;",
            ">;"
        }
    .end annotation

    .line 1
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    const/4 v1, 0x0

    .line 2
    :goto_0
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->o:Landroid/util/LongSparseArray;

    invoke-virtual {v2}, Landroid/util/LongSparseArray;->size()I

    move-result v2

    if-ge v1, v2, :cond_0

    .line 3
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->o:Landroid/util/LongSparseArray;

    invoke-virtual {v2, v1}, Landroid/util/LongSparseArray;->valueAt(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Les/cd$j;

    .line 4
    invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 5
    :cond_0
    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity$k;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity$k;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;)V

    invoke-static {v0, v1}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    return-object v0
.end method

.method private N()V
    .locals 4

    .line 1
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;

    invoke-direct {v0}, Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->q:Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;

    .line 2
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->p:Les/cd;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;->a(Les/cd;)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->q:Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->p:Les/cd;

    iget-object v1, v1, Les/cd;->d:Les/cd$i;

    iget-object v1, v1, Les/cd$i;->a:Ljava/util/List;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;->a(Ljava/util/List;)V

    .line 4
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->z()Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;

    move-result-object v0

    .line 5
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->q:Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;

    new-instance v2, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity$f;

    invoke-direct {v2, p0, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity$f;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;)V

    invoke-virtual {v1, v2}, Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;->a(Les/jb$d;)V

    .line 6
    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity$g;

    invoke-direct {v1, p0, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity$g;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->a(Lcom/esfile/screen/recorder/videos/edit/player/c$r;)V

    .line 7
    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity$h;

    invoke-direct {v1, p0, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity$h;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->a(Lcom/esfile/screen/recorder/player/exo/a$i;)V

    .line 8
    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity$i;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity$i;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->a(Lcom/esfile/screen/recorder/player/exo/a$c;)V

    .line 9
    new-instance v1, Landroid/widget/ImageView;

    invoke-direct {v1, p0}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->n:Landroid/widget/ImageView;

    const v1, 0x415547ae    # 13.33f

    .line 10
    invoke-direct {p0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->b(F)I

    move-result v1

    .line 11
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->n:Landroid/widget/ImageView;

    invoke-virtual {v2, v1, v1, v1, v1}, Landroid/widget/ImageView;->setPadding(IIII)V

    .line 12
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->n:Landroid/widget/ImageView;

    new-instance v2, Landroid/view/ViewGroup$LayoutParams;

    const/4 v3, -0x2

    invoke-direct {v2, v3, v3}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 13
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->n:Landroid/widget/ImageView;

    sget v2, Les/w4;->durec_volume_btn_selector:I

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 14
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->n:Landroid/widget/ImageView;

    const/16 v2, 0x8

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 15
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->n:Landroid/widget/ImageView;

    invoke-virtual {v1, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 16
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->n:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V

    return-void
.end method

.method private O()V
    .locals 5

    .line 1
    sget v0, Les/x4;->durec_music_snippetbar_container:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->A:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    const/4 v1, 0x1

    .line 2
    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->setNeedOccupyChecker(Z)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->A:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity$c;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity$c;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->setCenterSnippetListener(Lcom/esfile/screen/recorder/videos/edit/ui/b$b;)V

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->A:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity$d;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity$d;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->setCenterValueChangeListener(Lcom/esfile/screen/recorder/videos/edit/ui/b$c;)V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->A:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity$e;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity$e;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->setSlideListener(Lcom/esfile/screen/recorder/videos/edit/ui/b$f;)V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->A:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    .line 7
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    sget v2, Les/v4;->durec_edit_video_snippet_container_height:I

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v1

    .line 8
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    sget v3, Les/v4;->durec_edit_video_snippet_bg_height:I

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v2

    .line 9
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    sget v4, Les/v4;->durec_edit_video_snippet_bg_frame_width:I

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v3

    .line 10
    invoke-virtual {v0, v1, v2, v3}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a(III)V

    .line 11
    sget v0, Les/x4;->durec_music_snippetbar_time:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->s:Landroid/widget/TextView;

    .line 12
    sget v0, Les/x4;->durec_music_snippetbar_left_time:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->t:Landroid/widget/TextView;

    .line 13
    sget v0, Les/x4;->durec_music_snippetbar_right_time:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->u:Landroid/widget/TextView;

    .line 14
    sget v0, Les/x4;->add_music_info_container:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->x:Landroid/view/View;

    .line 15
    sget v0, Les/x4;->add_music_mp3_name:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->v:Landroid/widget/TextView;

    .line 16
    sget v0, Les/x4;->add_music_delete_mp3:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->w:Landroid/widget/ImageView;

    .line 17
    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 18
    sget v0, Les/x4;->add_music_left_btn:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->y:Landroid/widget/TextView;

    .line 19
    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 20
    sget v0, Les/x4;->add_music_preview_btn:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->z:Landroid/widget/TextView;

    .line 21
    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 22
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->V()V

    return-void
.end method

.method private P()V
    .locals 0

    .line 1
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->G()V

    .line 2
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->J()V

    return-void
.end method

.method private Q()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->B:Lcom/esfile/screen/recorder/videos/edit/ui/b$g;

    if-eqz v0, :cond_0

    .line 2
    iget-wide v0, v0, Lcom/esfile/screen/recorder/videos/edit/ui/b$g;->a:J

    invoke-direct {p0, v0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->c(J)V

    .line 3
    :cond_0
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->G()V

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->o:Landroid/util/LongSparseArray;

    invoke-virtual {v0}, Landroid/util/LongSparseArray;->size()I

    move-result v0

    if-nez v0, :cond_2

    .line 5
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->z()Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->n:Landroid/widget/ImageView;

    iget-boolean v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->E:Z

    if-eqz v1, :cond_1

    const/4 v1, 0x0

    goto :goto_0

    :cond_1
    const/16 v1, 0x8

    :goto_0
    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    :cond_2
    return-void
.end method

.method private R()V
    .locals 6

    .line 1
    invoke-static {}, Les/dd;->a()Les/cd;

    move-result-object v1

    .line 2
    iget-object v0, v1, Les/cd;->d:Les/cd$i;

    if-nez v0, :cond_0

    .line 3
    new-instance v0, Les/cd$i;

    invoke-direct {v0}, Les/cd$i;-><init>()V

    iput-object v0, v1, Les/cd;->d:Les/cd$i;

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->o:Landroid/util/LongSparseArray;

    invoke-virtual {v0}, Landroid/util/LongSparseArray;->size()I

    move-result v0

    if-lez v0, :cond_1

    .line 5
    iget-object v0, v1, Les/cd;->d:Les/cd$i;

    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->M()Ljava/util/List;

    move-result-object v2

    iput-object v2, v0, Les/cd$i;->a:Ljava/util/List;

    goto :goto_0

    .line 6
    :cond_1
    iget-object v0, v1, Les/cd;->d:Les/cd$i;

    const/4 v2, 0x0

    iput-object v2, v0, Les/cd$i;->a:Ljava/util/List;

    .line 7
    :goto_0
    iget-object v0, v1, Les/cd;->d:Les/cd$i;

    iget v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->m:F

    iput v2, v0, Les/cd$i;->b:F

    .line 8
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->r:[Ljava/lang/String;

    array-length v2, v0

    add-int/lit8 v2, v2, 0x1

    invoke-static {v0, v2}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;

    move-result-object v0

    move-object v2, v0

    check-cast v2, [Ljava/lang/String;

    .line 9
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->r:[Ljava/lang/String;

    array-length v0, v0

    const-string v3, "BGMRender"

    aput-object v3, v2, v0

    const/4 v3, 0x1

    const/16 v5, 0xe

    const-string v4, "addMusic"

    move-object v0, p0

    .line 10
    invoke-static/range {v0 .. v5}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditPreviewActivity;->a(Landroid/app/Activity;Les/cd;[Ljava/lang/String;ILjava/lang/String;I)V

    return-void
.end method

.method private S()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->o:Landroid/util/LongSparseArray;

    invoke-virtual {v0}, Landroid/util/LongSparseArray;->size()I

    move-result v0

    if-lez v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->p:Les/cd;

    iget-object v0, v0, Les/cd;->d:Les/cd$i;

    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->M()Ljava/util/List;

    move-result-object v1

    iput-object v1, v0, Les/cd$i;->a:Ljava/util/List;

    goto :goto_0

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->p:Les/cd;

    iget-object v0, v0, Les/cd;->d:Les/cd$i;

    const/4 v1, 0x0

    iput-object v1, v0, Les/cd$i;->a:Ljava/util/List;

    .line 4
    :goto_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->p:Les/cd;

    iget-object v1, v0, Les/cd;->d:Les/cd$i;

    iget v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->m:F

    iput v2, v1, Les/cd$i;->b:F

    .line 5
    invoke-static {v0}, Les/dd;->a(Les/cd;)V

    .line 6
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void
.end method

.method private T()V
    .locals 12

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->p:Les/cd;

    iget-object v0, v0, Les/cd;->d:Les/cd$i;

    iget-object v0, v0, Les/cd$i;->a:Ljava/util/List;

    if-eqz v0, :cond_4

    .line 2
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v11

    :cond_0
    :goto_0
    invoke-interface {v11}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_4

    invoke-interface {v11}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Les/cd$j;

    .line 3
    iget-wide v1, v0, Les/cd$j;->f:J

    .line 4
    iget-wide v3, v0, Les/cd$j;->g:J

    .line 5
    invoke-direct {p0, v1, v2}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->a(J)J

    move-result-wide v1

    .line 6
    invoke-direct {p0, v3, v4}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->a(J)J

    move-result-wide v3

    const-wide/16 v5, 0x0

    cmp-long v7, v3, v5

    if-lez v7, :cond_0

    .line 7
    iget-wide v7, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->F:J

    cmp-long v9, v1, v7

    if-ltz v9, :cond_1

    goto :goto_0

    :cond_1
    cmp-long v7, v1, v5

    if-gez v7, :cond_2

    move-wide v1, v5

    .line 8
    :cond_2
    iget-wide v5, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->F:J

    cmp-long v7, v3, v5

    if-lez v7, :cond_3

    move-wide v3, v5

    .line 9
    :cond_3
    iget-object v5, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->A:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    sub-long/2addr v3, v1

    invoke-virtual {v5, v1, v2, v3, v4}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->b(JJ)Z

    move-result v5

    if-eqz v5, :cond_0

    .line 10
    iget-object v5, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->A:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    invoke-virtual {v5, v1, v2, v3, v4}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a(JJ)J

    move-result-wide v1

    .line 11
    iget-object v3, v0, Les/cd$j;->b:Ljava/lang/String;

    iget-object v4, v0, Les/cd$j;->c:Ljava/lang/String;

    iget-wide v5, v0, Les/cd$j;->d:J

    long-to-int v5, v5

    iget-wide v6, v0, Les/cd$j;->e:J

    long-to-int v6, v6

    iget v7, v0, Les/cd$j;->h:F

    iget-wide v8, v0, Les/cd$j;->f:J

    long-to-int v8, v8

    iget-wide v9, v0, Les/cd$j;->g:J

    long-to-int v9, v9

    iget-boolean v10, v0, Les/cd$j;->i:Z

    move-object v0, p0

    invoke-direct/range {v0 .. v10}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->a(JLjava/lang/String;Ljava/lang/String;IIFIIZ)V

    goto :goto_0

    :cond_4
    return-void
.end method

.method private U()V
    .locals 4

    .line 1
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->G()V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->o:Landroid/util/LongSparseArray;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->B:Lcom/esfile/screen/recorder/videos/edit/ui/b$g;

    iget-wide v1, v1, Lcom/esfile/screen/recorder/videos/edit/ui/b$g;->a:J

    invoke-virtual {v0, v1, v2}, Landroid/util/LongSparseArray;->get(J)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Les/cd$j;

    if-eqz v0, :cond_0

    .line 3
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->B:Lcom/esfile/screen/recorder/videos/edit/ui/b$g;

    .line 4
    iget-wide v2, v1, Lcom/esfile/screen/recorder/videos/edit/ui/b$g;->b:J

    long-to-int v3, v2

    .line 5
    iget-wide v1, v1, Lcom/esfile/screen/recorder/videos/edit/ui/b$g;->a:J

    invoke-direct {p0, v1, v2, v3}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->a(JI)I

    move-result v1

    sub-int/2addr v1, v3

    .line 6
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->B:Lcom/esfile/screen/recorder/videos/edit/ui/b$g;

    iget-wide v2, v2, Lcom/esfile/screen/recorder/videos/edit/ui/b$g;->a:J

    invoke-direct {p0, v2, v3, v1, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->a(JILes/cd$j;)V

    :cond_0
    return-void
.end method

.method private V()V
    .locals 6

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->B:Lcom/esfile/screen/recorder/videos/edit/ui/b$g;

    const/4 v1, 0x4

    const-string v2, ""

    if-eqz v0, :cond_1

    .line 2
    iget-object v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->o:Landroid/util/LongSparseArray;

    iget-wide v4, v0, Lcom/esfile/screen/recorder/videos/edit/ui/b$g;->a:J

    invoke-virtual {v3, v4, v5}, Landroid/util/LongSparseArray;->get(J)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Les/cd$j;

    if-eqz v0, :cond_0

    .line 3
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->y:Landroid/widget/TextView;

    sget v2, Les/z4;->durec_edit_music:I

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(I)V

    .line 4
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->v:Landroid/widget/TextView;

    iget-object v0, v0, Les/cd$j;->c:Ljava/lang/String;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->x:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0

    .line 6
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->y:Landroid/widget/TextView;

    sget v3, Les/z4;->durec_add_music:I

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(I)V

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->v:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 8
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->x:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0

    .line 9
    :cond_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->y:Landroid/widget/TextView;

    sget v3, Les/z4;->durec_add_music:I

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(I)V

    .line 10
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->v:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 11
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->x:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    :goto_0
    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;F)F
    .locals 0

    .line 5
    iput p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->m:F

    return p1
.end method

.method private a(JI)I
    .locals 6

    .line 28
    iget-wide v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->F:J

    const/4 v2, 0x0

    .line 29
    :goto_0
    iget-object v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->o:Landroid/util/LongSparseArray;

    invoke-virtual {v3}, Landroid/util/LongSparseArray;->size()I

    move-result v3

    if-ge v2, v3, :cond_2

    .line 30
    iget-object v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->o:Landroid/util/LongSparseArray;

    invoke-virtual {v3, v2}, Landroid/util/LongSparseArray;->keyAt(I)J

    move-result-wide v3

    cmp-long v5, p1, v3

    if-nez v5, :cond_0

    goto :goto_1

    .line 31
    :cond_0
    iget-object v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->o:Landroid/util/LongSparseArray;

    invoke-virtual {v3, v2}, Landroid/util/LongSparseArray;->valueAt(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Les/cd$j;

    .line 32
    iget-wide v3, v3, Les/cd$j;->f:J

    invoke-direct {p0, v3, v4}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->a(J)J

    move-result-wide v3

    long-to-int v4, v3

    if-le v4, p3, :cond_1

    int-to-long v3, v4

    .line 33
    invoke-static {v0, v1, v3, v4}, Ljava/lang/Math;->min(JJ)J

    move-result-wide v0

    :cond_1
    :goto_1
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_2
    long-to-int p1, v0

    return p1
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;I)I
    .locals 0

    .line 4
    iput p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->C:I

    return p1
.end method

.method private a(J)J
    .locals 3

    .line 60
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->p:Les/cd;

    if-nez v0, :cond_0

    return-wide p1

    .line 61
    :cond_0
    invoke-static {v0, p1, p2}, Les/rd;->b(Les/cd;J)J

    move-result-wide p1

    const-wide/16 v0, 0x0

    cmp-long v2, p1, v0

    if-gez v2, :cond_1

    move-wide p1, v0

    .line 62
    :cond_1
    iget-wide v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->F:J

    cmp-long v2, p1, v0

    if-lez v2, :cond_2

    move-wide p1, v0

    :cond_2
    return-wide p1
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;J)J
    .locals 0

    .line 3
    invoke-direct {p0, p1, p2}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->a(J)J

    move-result-wide p0

    return-wide p0
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;)Lcom/esfile/screen/recorder/videos/edit/ui/b$g;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->B:Lcom/esfile/screen/recorder/videos/edit/ui/b$g;

    return-object p0
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;Lcom/esfile/screen/recorder/videos/edit/ui/b$g;)Lcom/esfile/screen/recorder/videos/edit/ui/b$g;
    .locals 0

    .line 2
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->B:Lcom/esfile/screen/recorder/videos/edit/ui/b$g;

    return-object p1
.end method

.method private a(JIIIIFZ)V
    .locals 1

    .line 48
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->o:Landroid/util/LongSparseArray;

    invoke-virtual {v0, p1, p2}, Landroid/util/LongSparseArray;->get(J)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Les/cd$j;

    if-eqz p1, :cond_0

    int-to-long p2, p3

    .line 49
    iput-wide p2, p1, Les/cd$j;->d:J

    int-to-long p2, p4

    .line 50
    iput-wide p2, p1, Les/cd$j;->e:J

    .line 51
    iput p7, p1, Les/cd$j;->h:F

    .line 52
    iput-boolean p8, p1, Les/cd$j;->i:Z

    int-to-long p2, p5

    .line 53
    iput-wide p2, p1, Les/cd$j;->f:J

    int-to-long p2, p6

    .line 54
    iput-wide p2, p1, Les/cd$j;->g:J

    .line 55
    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    const-string p3, "updateMusic"

    invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Les/cd$j;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string p2, "AddBGMusicActivity"

    invoke-static {p2, p1}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    return-void
.end method

.method private a(JILes/cd$j;)V
    .locals 13

    move-object v9, p0

    .line 34
    new-instance v10, Lcom/esfile/screen/recorder/videos/edit/activities/music/a;

    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->v()Ljava/lang/String;

    move-result-object v6

    iget v7, v9, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->m:F

    iget-object v0, v9, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->p:Les/cd;

    iget-object v0, v0, Les/cd;->k:Les/cd$o;

    if-eqz v0, :cond_0

    iget-object v0, v0, Les/cd$o;->a:Ljava/util/List;

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    move-object v8, v0

    iget-boolean v11, v9, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->E:Z

    new-instance v12, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity$b;

    move-object v0, v12

    move-object v1, p0

    move-object/from16 v2, p4

    move/from16 v3, p3

    move-wide v4, p1

    invoke-direct/range {v0 .. v5}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity$b;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;Les/cd$j;IJ)V

    move-object v0, v10

    move-object v2, v6

    move v3, v7

    move-object v4, v8

    move v5, v11

    move/from16 v6, p3

    move-object/from16 v7, p4

    move-object v8, v12

    invoke-direct/range {v0 .. v8}, Lcom/esfile/screen/recorder/videos/edit/activities/music/a;-><init>(Landroid/content/Context;Ljava/lang/String;FLjava/util/List;ZILes/cd$j;Lcom/esfile/screen/recorder/videos/edit/activities/music/a$m;)V

    iput-object v10, v9, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->J:Lcom/esfile/screen/recorder/videos/edit/activities/music/a;

    .line 35
    invoke-virtual {v10}, Lcom/esfile/screen/recorder/videos/edit/activities/music/a;->show()V

    return-void
.end method

.method private a(JLjava/lang/String;Ljava/lang/String;IIFIIZ)V
    .locals 1

    .line 36
    new-instance v0, Les/cd$j;

    invoke-direct {v0}, Les/cd$j;-><init>()V

    .line 37
    iput-wide p1, v0, Les/cd$j;->a:J

    .line 38
    iput-object p4, v0, Les/cd$j;->c:Ljava/lang/String;

    .line 39
    iput-object p3, v0, Les/cd$j;->b:Ljava/lang/String;

    int-to-long p3, p5

    .line 40
    iput-wide p3, v0, Les/cd$j;->d:J

    int-to-long p3, p6

    .line 41
    iput-wide p3, v0, Les/cd$j;->e:J

    .line 42
    iput p7, v0, Les/cd$j;->h:F

    .line 43
    iput-boolean p10, v0, Les/cd$j;->i:Z

    int-to-long p3, p8

    .line 44
    iput-wide p3, v0, Les/cd$j;->f:J

    int-to-long p3, p9

    .line 45
    iput-wide p3, v0, Les/cd$j;->g:J

    .line 46
    iget-object p3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->o:Landroid/util/LongSparseArray;

    invoke-virtual {p3, p1, p2, v0}, Landroid/util/LongSparseArray;->put(JLjava/lang/Object;)V

    .line 47
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    const-string p2, "addMusicToList:"

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Les/cd$j;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string p2, "AddBGMusicActivity"

    invoke-static {p2, p1}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;)V
    .locals 2

    .line 56
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v1, "extra_video_path"

    .line 57
    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const/high16 p1, 0x14000000

    .line 58
    invoke-virtual {v0, p1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 59
    invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method private a(Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;)V
    .locals 24

    move-object/from16 v11, p0

    .line 8
    iget-object v0, v11, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->n:Landroid/widget/ImageView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 9
    iget-object v0, v11, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->A:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    const-wide/16 v1, 0x3e8

    invoke-virtual {v0, v1, v2}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->c(J)Z

    move-result v0

    if-eqz v0, :cond_4

    .line 10
    iget-object v0, v11, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->A:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    invoke-virtual/range {p1 .. p1}, Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;->j()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a(J)J

    move-result-wide v12

    .line 11
    iget-object v0, v11, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->A:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    invoke-virtual {v0, v12, v13}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->b(J)Lcom/esfile/screen/recorder/videos/edit/ui/b$g;

    move-result-object v0

    .line 12
    iget-wide v1, v0, Lcom/esfile/screen/recorder/videos/edit/ui/b$g;->b:J

    long-to-int v14, v1

    .line 13
    iget-wide v0, v0, Lcom/esfile/screen/recorder/videos/edit/ui/b$g;->c:J

    long-to-int v1, v0

    .line 14
    invoke-direct {v11, v12, v13, v14}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->a(JI)I

    move-result v15

    .line 15
    invoke-virtual/range {p1 .. p1}, Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;->j()J

    move-result-wide v2

    long-to-int v0, v2

    sub-int v10, v15, v14

    if-le v10, v0, :cond_0

    const/4 v0, 0x1

    const/16 v16, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    const/16 v16, 0x0

    :goto_0
    if-eqz v16, :cond_1

    move v1, v15

    .line 16
    :cond_1
    invoke-virtual/range {p1 .. p1}, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;->c()Ljava/lang/String;

    move-result-object v3

    invoke-virtual/range {p1 .. p1}, Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;->k()Ljava/lang/String;

    move-result-object v4

    .line 17
    invoke-virtual/range {p1 .. p1}, Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;->j()J

    move-result-wide v6

    long-to-int v6, v6

    int-to-long v8, v14

    move/from16 p1, v6

    .line 18
    invoke-direct {v11, v8, v9}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->b(J)J

    move-result-wide v5

    long-to-int v6, v5

    int-to-long v1, v1

    move-wide/from16 v19, v8

    .line 19
    invoke-direct {v11, v1, v2}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->b(J)J

    move-result-wide v7

    long-to-int v9, v7

    move-object/from16 v0, p0

    move-wide/from16 v21, v1

    move-wide v1, v12

    const/4 v5, 0x0

    move v8, v6

    move/from16 v6, p1

    const/high16 v7, 0x3f800000    # 1.0f

    move-wide/from16 v17, v19

    move/from16 v23, v10

    move/from16 v10, v16

    .line 20
    invoke-direct/range {v0 .. v10}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->a(JLjava/lang/String;Ljava/lang/String;IIFIIZ)V

    if-eqz v16, :cond_2

    .line 21
    iget-object v3, v11, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->A:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    move-wide v4, v12

    move-wide/from16 v6, v17

    move-wide/from16 v8, v21

    invoke-virtual/range {v3 .. v9}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a(JJJ)V

    .line 22
    :cond_2
    invoke-direct/range {p0 .. p0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->V()V

    .line 23
    sget-boolean v0, Les/u6;->b:Z

    if-eqz v0, :cond_3

    .line 24
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "leftProgress:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v14}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v1, "AddBGMusicActivity"

    invoke-static {v1, v0}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 25
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "maxRightProgress:"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v15}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v0}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 26
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "maxPreviewTime:"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move/from16 v15, v23

    invoke-virtual {v0, v15}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v0}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1

    :cond_3
    move/from16 v15, v23

    .line 27
    :goto_1
    iget-object v0, v11, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->o:Landroid/util/LongSparseArray;

    invoke-virtual {v0, v12, v13}, Landroid/util/LongSparseArray;->get(J)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Les/cd$j;

    invoke-direct {v11, v12, v13, v15, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->a(JILes/cd$j;)V

    :cond_4
    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;JIIIIFZ)V
    .locals 0

    .line 6
    invoke-direct/range {p0 .. p8}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->a(JIIIIFZ)V

    return-void
.end method

.method private b(F)I
    .locals 2

    .line 9
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    .line 10
    invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v0

    const/4 v1, 0x1

    .line 11
    invoke-static {v1, p1, v0}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F

    move-result p1

    invoke-static {p1}, Ljava/lang/Math;->round(F)I

    move-result p1

    return p1
.end method

.method private b(J)J
    .locals 1

    .line 12
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->p:Les/cd;

    if-nez v0, :cond_0

    return-wide p1

    .line 13
    :cond_0
    invoke-static {v0, p1, p2}, Les/rd;->c(Les/cd;J)J

    move-result-wide p1

    return-wide p1
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->V()V

    return-void
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;I)V
    .locals 0

    .line 3
    invoke-virtual {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->f(I)V

    return-void
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;J)V
    .locals 0

    .line 2
    invoke-direct {p0, p1, p2}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->c(J)V

    return-void
.end method

.method static synthetic c(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;J)J
    .locals 0

    .line 2
    invoke-direct {p0, p1, p2}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->b(J)J

    move-result-wide p0

    return-wide p0
.end method

.method static synthetic c(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;)Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->A:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    return-object p0
.end method

.method private c(J)V
    .locals 1

    .line 21
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->o:Landroid/util/LongSparseArray;

    invoke-virtual {v0, p1, p2}, Landroid/util/LongSparseArray;->remove(J)V

    .line 22
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->A:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    invoke-virtual {v0, p1, p2}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->d(J)V

    const/4 p1, 0x0

    .line 23
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->B:Lcom/esfile/screen/recorder/videos/edit/ui/b$g;

    .line 24
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->V()V

    return-void
.end method

.method static synthetic d(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->C:I

    return p0
.end method

.method private d(Ljava/lang/String;)V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 2
    new-instance v0, Lcom/esfile/screen/recorder/media/b;

    invoke-direct {v0}, Lcom/esfile/screen/recorder/media/b;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->H:Lcom/esfile/screen/recorder/media/b;

    .line 3
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    sget v1, Les/v4;->durec_video_edit_snippet_min_side_max_width:I

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result v0

    .line 4
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->H:Lcom/esfile/screen/recorder/media/b;

    invoke-virtual {v1, v0}, Lcom/esfile/screen/recorder/media/b;->b(I)V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->H:Lcom/esfile/screen/recorder/media/b;

    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/media/b;->a(Ljava/lang/String;)V

    return-void
.end method

.method static synthetic e(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;)Ljava/util/List;
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->M()Ljava/util/List;

    move-result-object p0

    return-object p0
.end method

.method static synthetic f(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;)F
    .locals 0

    .line 1
    iget p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->m:F

    return p0
.end method

.method static synthetic g(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;)Lcom/esfile/screen/recorder/media/b;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->H:Lcom/esfile/screen/recorder/media/b;

    return-object p0
.end method

.method static synthetic h(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;)Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity$l;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->I:Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity$l;

    return-object p0
.end method

.method static synthetic i(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;)Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->q:Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;

    return-object p0
.end method

.method static synthetic j(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;)J
    .locals 2

    .line 1
    iget-wide v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->F:J

    return-wide v0
.end method

.method static synthetic k(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;)Landroid/widget/TextView;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->s:Landroid/widget/TextView;

    return-object p0
.end method

.method static synthetic l(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;)Landroid/widget/TextView;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->t:Landroid/widget/TextView;

    return-object p0
.end method

.method static synthetic m(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;)Landroid/widget/TextView;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->u:Landroid/widget/TextView;

    return-object p0
.end method

.method static synthetic n(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;)Landroid/util/LongSparseArray;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->o:Landroid/util/LongSparseArray;

    return-object p0
.end method


# virtual methods
.method protected C()Z
    .locals 11

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->p:Les/cd;

    iget-object v0, v0, Les/cd;->d:Les/cd$i;

    iget v1, v0, Les/cd$i;->b:F

    iget v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->m:F

    const-string v3, "new:"

    const-string v4, "ori:"

    const/4 v5, 0x1

    const-string v6, "\n"

    const-string v7, "AddBGMusicActivity"

    cmpl-float v1, v1, v2

    if-eqz v1, :cond_0

    const-string v0, "audio volume different\n"

    .line 2
    invoke-static {v7, v0}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 3
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->p:Les/cd;

    iget-object v1, v1, Les/cd;->d:Les/cd$i;

    iget v1, v1, Les/cd$i;->b:F

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v7, v0}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 4
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->m:F

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v7, v0}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    return v5

    .line 5
    :cond_0
    iget-object v0, v0, Les/cd$i;->a:Ljava/util/List;

    const/4 v1, 0x0

    if-eqz v0, :cond_3

    .line 6
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->o:Landroid/util/LongSparseArray;

    invoke-virtual {v2}, Landroid/util/LongSparseArray;->size()I

    move-result v2

    if-eq v0, v2, :cond_1

    const-string v0, "music size different\n"

    .line 7
    invoke-static {v7, v0}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 8
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->p:Les/cd;

    iget-object v1, v1, Les/cd;->d:Les/cd$i;

    iget-object v1, v1, Les/cd$i;->a:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v7, v0}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 9
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->o:Landroid/util/LongSparseArray;

    invoke-virtual {v1}, Landroid/util/LongSparseArray;->size()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v7, v0}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    return v5

    .line 10
    :cond_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->p:Les/cd;

    iget-object v0, v0, Les/cd;->d:Les/cd$i;

    iget-object v0, v0, Les/cd$i;->a:Ljava/util/List;

    .line 11
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->M()Ljava/util/List;

    move-result-object v2

    const/4 v8, 0x0

    .line 12
    :goto_0
    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v9

    if-ge v8, v9, :cond_4

    .line 13
    invoke-interface {v0, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Les/cd$j;

    invoke-interface {v2, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v10

    invoke-virtual {v9, v10}, Les/cd$j;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-nez v9, :cond_2

    const-string v1, "music content different\n"

    .line 14
    invoke-static {v7, v1}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 15
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-interface {v0, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Les/cd$j;

    invoke-virtual {v0}, Les/cd$j;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v7, v0}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 16
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-interface {v2, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/cd$j;

    invoke-virtual {v1}, Les/cd$j;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v7, v0}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    return v5

    :cond_2
    add-int/lit8 v8, v8, 0x1

    goto :goto_0

    .line 17
    :cond_3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->o:Landroid/util/LongSparseArray;

    invoke-virtual {v0}, Landroid/util/LongSparseArray;->size()I

    move-result v0

    if-lez v0, :cond_4

    const-string v0, "add music different\n"

    .line 18
    invoke-static {v7, v0}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    return v5

    :cond_4
    return v1
.end method

.method protected F()V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->S()V

    return-void
.end method

.method public I()V
    .locals 3

    .line 1
    new-instance v0, Landroid/os/HandlerThread;

    const-string v1, "MusicImageGetHandler"

    invoke-direct {v0, v1}, Landroid/os/HandlerThread;-><init>(Ljava/lang/String;)V

    .line 2
    invoke-virtual {v0}, Landroid/os/HandlerThread;->start()V

    .line 3
    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity$l;

    invoke-virtual {v0}, Landroid/os/HandlerThread;->getLooper()Landroid/os/Looper;

    move-result-object v0

    invoke-direct {v1, p0, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity$l;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;Landroid/os/Looper;)V

    iput-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->I:Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity$l;

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->A:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    iget-wide v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->F:J

    invoke-virtual {v0, v1, v2}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->setDuration(J)V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->A:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity$j;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity$j;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->setDecoration(Lcom/esfile/screen/recorder/videos/edit/ui/SnippetBgView$a;)V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->A:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a()V

    return-void
.end method

.method public J()V
    .locals 4

    .line 1
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/activities/music/b;

    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->v()Ljava/lang/String;

    move-result-object v1

    iget v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->m:F

    new-instance v3, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity$a;

    invoke-direct {v3, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity$a;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;)V

    invoke-direct {v0, p0, v1, v2, v3}, Lcom/esfile/screen/recorder/videos/edit/activities/music/b;-><init>(Landroid/content/Context;Ljava/lang/String;FLcom/esfile/screen/recorder/videos/edit/activities/music/b$h;)V

    .line 2
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/b;->show()V

    return-void
.end method

.method protected a(Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;)V
    .locals 1

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->r:[Ljava/lang/String;

    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/videos/edit/player/c;->a([Ljava/lang/String;)V

    return-void
.end method

.method protected b(Ljava/lang/String;)Z
    .locals 0

    .line 4
    invoke-virtual {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->c(Ljava/lang/String;)V

    .line 5
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->L()V

    .line 6
    :try_start_0
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->d(Ljava/lang/String;)V

    .line 7
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->H:Lcom/esfile/screen/recorder/media/b;

    if-eqz p1, :cond_0

    .line 8
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->H:Lcom/esfile/screen/recorder/media/b;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/media/b;->d()V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    const/4 p1, 0x1

    return p1

    :catch_0
    const/4 p1, 0x0

    return p1
.end method

.method protected c(Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;)V
    .locals 2

    .line 11
    invoke-super {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->c(Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;)V

    .line 12
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->H:Lcom/esfile/screen/recorder/media/b;

    if-eqz p1, :cond_0

    .line 13
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/media/b;->e()Z

    .line 14
    :cond_0
    iget-boolean p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->G:Z

    if-eqz p1, :cond_2

    .line 15
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->I()V

    .line 16
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->T()V

    .line 17
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->n:Landroid/widget/ImageView;

    iget-boolean v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->E:Z

    const/4 v1, 0x0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->o:Landroid/util/LongSparseArray;

    invoke-virtual {v0}, Landroid/util/LongSparseArray;->size()I

    move-result v0

    if-gtz v0, :cond_1

    const/4 v0, 0x0

    goto :goto_0

    :cond_1
    const/16 v0, 0x8

    :goto_0
    invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 18
    iput-boolean v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->G:Z

    .line 19
    :cond_2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->V()V

    .line 20
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->A:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->c()V

    return-void
.end method

.method public c(Ljava/lang/String;)V
    .locals 3

    .line 3
    new-instance v0, Landroid/media/MediaMetadataRetriever;

    invoke-direct {v0}, Landroid/media/MediaMetadataRetriever;-><init>()V

    .line 4
    :try_start_0
    invoke-virtual {v0, p1}, Landroid/media/MediaMetadataRetriever;->setDataSource(Ljava/lang/String;)V

    const/16 p1, 0x9

    .line 5
    invoke-virtual {v0, p1}, Landroid/media/MediaMetadataRetriever;->extractMetadata(I)Ljava/lang/String;

    move-result-object p1

    .line 6
    invoke-static {p1}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

    move-result-wide v1

    iput-wide v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->D:J

    const/16 p1, 0x10

    .line 7
    invoke-virtual {v0, p1}, Landroid/media/MediaMetadataRetriever;->extractMetadata(I)Ljava/lang/String;

    move-result-object p1

    if-eqz p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    .line 8
    :goto_0
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->E:Z
    :try_end_0
    .catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 9
    :catch_0
    :try_start_1
    invoke-virtual {v0}, Landroid/media/MediaMetadataRetriever;->release()V
    :try_end_1
    .catch Ljava/lang/RuntimeException; {:try_start_1 .. :try_end_1} :catch_2

    goto :goto_1

    :catchall_0
    move-exception p1

    :try_start_2
    invoke-virtual {v0}, Landroid/media/MediaMetadataRetriever;->release()V
    :try_end_2
    .catch Ljava/lang/RuntimeException; {:try_start_2 .. :try_end_2} :catch_1

    .line 10
    :catch_1
    throw p1

    :catch_2
    :goto_1
    return-void
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 2

    const/4 v0, -0x1

    const/16 v1, 0x3e8

    if-ne p1, v1, :cond_0

    if-ne p2, v0, :cond_1

    if-eqz p3, :cond_1

    const-string p1, "SELECTED_MEDIAS"

    .line 1
    invoke-virtual {p3, p1}, Landroid/content/Intent;->getParcelableArrayListExtra(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object p1

    if-eqz p1, :cond_1

    .line 2
    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result p2

    if-lez p2, :cond_1

    const/4 p2, 0x0

    .line 3
    invoke-virtual {p1, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;

    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->a(Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;)V

    .line 4
    invoke-static {}, Lcom/esfile/screen/recorder/videos/edit/k;->m()V

    goto :goto_0

    :cond_0
    const/4 p3, 0x1

    if-ne p1, p3, :cond_1

    if-ne p2, v0, :cond_1

    .line 5
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->S()V

    :cond_1
    :goto_0
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->w:Landroid/widget/ImageView;

    if-ne p1, v0, :cond_0

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->Q()V

    goto :goto_0

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->y:Landroid/widget/TextView;

    if-ne p1, v0, :cond_2

    .line 4
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->B:Lcom/esfile/screen/recorder/videos/edit/ui/b$g;

    if-eqz p1, :cond_1

    .line 5
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->U()V

    goto :goto_0

    .line 6
    :cond_1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->K()V

    goto :goto_0

    .line 7
    :cond_2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->z:Landroid/widget/TextView;

    if-ne p1, v0, :cond_3

    .line 8
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->R()V

    goto :goto_0

    .line 9
    :cond_3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->n:Landroid/widget/ImageView;

    if-ne p1, v0, :cond_4

    .line 10
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->P()V

    :cond_4
    :goto_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1

    .line 1
    invoke-super {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->onCreate(Landroid/os/Bundle;)V

    .line 2
    invoke-virtual {p0}, Landroid/app/Activity;->isFinishing()Z

    move-result p1

    if-eqz p1, :cond_0

    return-void

    .line 3
    :cond_0
    invoke-static {}, Les/dd;->a()Les/cd;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->p:Les/cd;

    .line 4
    iget-object v0, p1, Les/cd;->d:Les/cd$i;

    if-eqz v0, :cond_1

    .line 5
    iget p1, v0, Les/cd$i;->b:F

    iput p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->m:F

    goto :goto_0

    .line 6
    :cond_1
    new-instance v0, Les/cd$i;

    invoke-direct {v0}, Les/cd$i;-><init>()V

    iput-object v0, p1, Les/cd;->d:Les/cd$i;

    .line 7
    :goto_0
    sget p1, Les/y4;->durec_video_edit_add_music_layout:I

    invoke-virtual {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->h(I)V

    .line 8
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->N()V

    .line 9
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->O()V

    const/4 p1, 0x0

    .line 10
    invoke-virtual {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->f(Z)V

    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .line 1
    invoke-super {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->onDestroy()V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->H:Lcom/esfile/screen/recorder/media/b;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/media/b;->c()V

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->q:Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;

    if-eqz v0, :cond_1

    .line 5
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;->c()V

    .line 6
    :cond_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->I:Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity$l;

    if-eqz v0, :cond_2

    .line 7
    invoke-virtual {v0}, Landroid/os/Handler;->getLooper()Landroid/os/Looper;

    move-result-object v0

    invoke-virtual {v0}, Landroid/os/Looper;->quitSafely()V

    :cond_2
    return-void
.end method

.method protected onPause()V
    .locals 1

    .line 1
    invoke-super {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->onPause()V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->J:Lcom/esfile/screen/recorder/videos/edit/activities/music/a;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/a;->d()V

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->H:Lcom/esfile/screen/recorder/media/b;

    if-eqz v0, :cond_1

    .line 5
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/media/b;->d()V

    .line 6
    :cond_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->q:Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;

    if-eqz v0, :cond_2

    .line 7
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;->c()V

    :cond_2
    return-void
.end method

.method public u()Ljava/lang/String;
    .locals 1

    const-string v0, "GAConstants.SCREEN_VIDEO_EDIT_ADD_MUSIC"

    return-object v0
.end method

.method protected x()I
    .locals 1

    .line 1
    sget v0, Les/z4;->durec_common_ok:I

    return v0
.end method

.method protected y()I
    .locals 1

    .line 1
    sget v0, Les/z4;->durec_add_music:I

    return v0
.end method
